<template>
	<view>
		<!-- 退出 -->
		
		<view class="out">
			<button v-if="share" open-type="share" class="out_nei" :style="{'backgroundColor':bgColor,'color':color,'borderColor':borderColor}">{{name}}</button>
			<view v-else class="out_nei"
			:style="{'backgroundColor':bgColor,'color':color,'borderColor':borderColor,'borderWidth':'2rpx','borderStyle':'solid'}"
			>
				{{name}}
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"newBtn",
		props:{
			share:{
				type:Boolean,
				default:false
			},
			name:{
				type:String,
				default:''
			},
			bgColor:{
				type:String,
				default:'#FFF'
			},
			color:{
				type:String,
				default:'#000'
			},
			borderColor:{
				type:String,
				default:'transparent'
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
.out{
		
		width: 100%;
		height: 92rpx;
		padding: 20rpx;
		box-sizing: border-box;
		.out_nei{
			width: 100%;
			height: 92rpx;
			background-color: #FFF;
			border-radius: 200rpx;
			color: $text_color_333;
			font-size: 32rpx;
			font-weight: bold;
			line-height: 92rpx;
			text-align: center;
		}
	}
</style>